import request from "../api";

// 季节管理列表
export function seasonList(param) {
	return request({
		url: "/biz/manageIndex/list",
		method: "get",
		params: param,
	});
}
//查询复制季节列表
export function copySeasonList(param) {
	return request({
		url: "/biz/manageIndex/queryList",
		method: "get",
		params: param,
	});
}

// 新增季节管理
export function addSeason(data) {
	return request({
		url: "/biz/manageIndex",
		method: "post",
		data: data,
	});
}
// 修改季节管理
export function editSeason(data) {
	return request({
		url: "/biz/manageIndex",
		method: "put",
		data: data,
	});
}
// 删除季节管理
export function deleteSeason(id) {
	return request({
		url: "/biz/manageIndex/" + id,
		method: "delete",
	});
}
// 时段管理列表
export function timeList(param) {
	return request({
		url: "/biz/CostManageDetail/list",
		method: "get",
		params: param,
	});
}
// 新增时段管理
export function addTime(data) {
	return request({
		url: "/biz/CostManageDetail",
		method: "post",
		data: data,
	});
}
// 修改时段管理
export function editTime(data) {
	return request({
		url: "/biz/CostManageDetail",
		method: "put",
		data: data,
	});
}
// 删除季节管理
export function deleteTime(id) {
	return request({
		url: "/biz/CostManageDetail/" + id,
		method: "delete",
	});
}
